package com.example.gyt.service;

import com.example.gyt.dao.LandMapper;
import com.example.gyt.dao.UserMapper;
import com.example.gyt.pojo.Land;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LandService {

    @Autowired
    private LandMapper landMapper;

    public int deleteByPrimaryKey(String id){
        return landMapper.deleteByPrimaryKey(id);
    }

    public int insertSelective(Land record){
        return landMapper.insertSelective(record);
    }

    public Land selectByPrimaryKey(String id){
        return landMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(Land record){
        return landMapper.updateByPrimaryKeySelective(record);
    }

    public List<Land> getAllLandList(Land record){
        return landMapper.getAllLandList(record);
    }

    public int queryCountLike(Land record){
        return landMapper.queryCountLike(record);
    }
}
